import request from '@/utils/request'

// 查询充电桩专用列表
export function listDedicated(query) {
  return request({
    url: '/system/dedicated/list',
    method: 'get',
    params: query
  })
}

// 查询充电桩专用详细
export function getDedicated(id) {
  return request({
    url: '/system/dedicated/' + id,
    method: 'get'
  })
}

// 新增充电桩专用
export function addDedicated(data) {
  return request({
    url: '/system/dedicated',
    method: 'post',
    data: data
  })
}

// 修改充电桩专用
export function updateDedicated(data) {
  return request({
    url: '/system/dedicated',
    method: 'put',
    data: data
  })
}

// 删除充电桩专用
export function delDedicated(id) {
  return request({
    url: '/system/dedicated/' + id,
    method: 'delete'
  })
}
